package com.compass.mobile.ui.activity

import android.content.Context
import android.content.Intent
import android.os.Bundle
import androidx.fragment.app.FragmentTransaction
import com.compass.mobile.R
import com.compass.mobile.databinding.ActivityHomePageBinding
import com.compass.mobile.framework.base.BaseVBActivity
import com.compass.mobile.framework.ext.gone
import com.compass.mobile.framework.ext.invisible
import com.compass.mobile.ui.fragment.NotificationFragment

/**
 * Description： 消息通知
 * Date:2024/6/8 18:23
 */
class NotificationActivity : BaseVBActivity<ActivityHomePageBinding>() {


    companion object {
        fun start(context: Context) {
            val intent = Intent(context, NotificationActivity::class.java)
            context.startActivity(intent)
        }
    }

    override fun initView(savedInstanceState: Bundle?) {
        mBinding.topView.invisible()
        val fragmentTransaction: FragmentTransaction = supportFragmentManager.beginTransaction()
        fragmentTransaction.replace(R.id.fragmentContainer, NotificationFragment())
        fragmentTransaction.commit()

    }
}